tTrawler.http = {
  requestSlots : [],
  connection : [],
  
  httpRequest : function (url, method, query, response) {
    var c = this.requestSlots.length;
    this.requestSlots.push(new XMLHttpRequest());
    this.connection[c] = true;
    
    this.requestSlots[c].onreadystatechange = function () {
      try {
        tTrawler.http.callBack(c, response);
      } catch(e){};
     };
     
    this.requestSlots[c].open(method, url + query, true);
    this.requestSlots[c].send(null); 
  },
  
  callBack : function (slot, callBack) {
    try {
      if (tTrawler.http.requestSlots[slot].readyState == 4) {
        if (tTrawler.http.requestSlots[slot].status == 200) {
          tTrawler.http.connection[slot] = false; 
          eval(callBack);
        }; 
      };
    } catch(e) {
      this.connection[slot] = false;   
    }
  },
  connectionStatus : function () {
  var count = 0;
    for(j in this.connection) {
      if(this.connection[j] == false) {
        count++;
      } else {
        break;
      }
    }
    return (count == this.connection.length)? true : false;
  } 
 /*--*/
}